// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '库区建模',
        name: 'ReservoirareaModelling',
        url: "/ReservoirareaModelling/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ReservoirareaNumber":"","ReservoirareaName":"","CId":"","ReservoirareaArea":"","ReservoirareaPersonincharge":"","ReservoirareaNote":""};
    const editFormOptions = [[{"title":"库区编号","field":"ReservoirareaNumber","type":"text"},
                               {"title":"库区名称","field":"ReservoirareaName","type":"text"}],
                              [{"dataKey":"仓库建模","data":[],"title":"所属仓库","field":"CId","type":"select"},
                               {"title":"面积（m3）","field":"ReservoirareaArea","type":"text"}],
                              [{"title":"负责人","field":"ReservoirareaPersonincharge","type":"text"},
                               {"title":"备注","field":"ReservoirareaNote","type":"text"}]];
    const searchFormFields = {"ReservoirareaNumber":"","ReservoirareaName":"","CId":"","ReservoirareaArea":"","ReservoirareaPersonincharge":"","ReservoirareaNote":""};
    const searchFormOptions = [[{"title":"库区编号","field":"ReservoirareaNumber","type":"like"},{"title":"库区名称","field":"ReservoirareaName","type":"like"},{"dataKey":"仓库建模","data":[],"title":"所属仓库","field":"CId","type":"like"}],[{"title":"面积（m3）","field":"ReservoirareaArea","type":"="},{"title":"负责人","field":"ReservoirareaPersonincharge","type":"like"},{"title":"备注","field":"ReservoirareaNote","type":"like"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ReservoirareaNumber',title:'库区编号',type:'string',width:220,align:'left',sort:true},
                       {field:'ReservoirareaName',title:'库区名称',type:'string',width:220,align:'left'},
                       {field:'CId',title:'所属仓库',type:'int',bind:{ key:'仓库建模',data:[]},width:110,align:'left'},
                       {field:'ReservoirareaArea',title:'面积（m3）',type:'int',width:110,align:'left'},
                       {field:'ReservoirareaPersonincharge',title:'负责人',type:'string',width:220,align:'left'},
                       {field:'ReservoirareaNote',title:'备注',type:'string',width:220,align:'left'},
                       {field:'IsDel',title:'删除字段',type:'bool',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}